<?php
/**
 * Created by PhpStorm.
 * User: 'mrzhan'
 * Date: 2021/1/7
 * Time: 0:01
 */

namespace App\Aspect;



use App\Controller\IndexController;
use Hyperf\Di\Annotation\Aspect;
use Hyperf\Di\Aop\AbstractAspect;
use Hyperf\Di\Aop\ProceedingJoinPoint;


/**
 * Class IndexAspect
 * @Aspect()
 */
class IndexAspect extends AbstractAspect
{

    public $classes = [
//        IndexController::class .'::'. 'index',
    ];

    public function process(ProceedingJoinPoint $proceedingJoinPoint)
    {

        $result = $proceedingJoinPoint->process();
        return 'before'.$result.'after';
    }
}
